package com.sky;

import cn.hutool.core.convert.Convert;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;

import java.time.LocalDateTime;

@Slf4j
public class Demo1 {

    @Test
    public void test1(){

        String data = "2002-01-01 12:12:12";
        LocalDateTime localDateTime = Convert.toLocalDateTime(data);
        log.info("localDateTime={}",localDateTime);

    }

}
